﻿using Grow.Module.Service;

namespace Grow.Domain.EventBus
{
    public abstract class DomainEventHandlerBase<TDomainEvent> : IDomainEventHandler<TDomainEvent> where TDomainEvent : IDomainEvent
    {
        protected readonly IServiceContext _serviceContext;

        public DomainEventHandlerBase(IServiceContext serviceContext)
        {
            _serviceContext = serviceContext;
        }

        public abstract Task HandleAsync(TDomainEvent domainEvent);
    }
}
